package com.pzhu.common.constant;

/**
 * @Author : zqh
 * @Date : 2023/11/27 0027 下午 7:51
 * @Version: 1.0
 */
public enum ErrorCode {
    NOT_EXIT_NAME(10001,"不存在用户名！"),
    NEED_DEL_CHILDREN(10002,"请先删除子菜单！"),
    WX_LOGIN_ERR(20001,"登录失败，请联系管理员!"),
    WX_ACCOUNT_BAN(20002,"账号停用,请联系管理员！"),
    WX_ACCOUNT_ADD(20003,"新增用户失败！"),
    WX_NEED_OPENID(20004,"请传递小程序唯一标识！"),
    ;




    //异常编码
    private Integer code;
    //异常描述信息
    private String msg;

    ErrorCode(Integer code, String msg) {
        this.code = code;
        this.msg = msg;
    }

    public Integer getCode() {
        return code;
    }

    public void setCode(Integer code) {
        this.code = code;
    }

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }
}
